<div xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jstl/core" class="box" >
    <!-- panier (petit) -->

    <h:form id="littleCartForm" >
        <dl>
            <dt class="boxHeader">Votre panier</dt>
            <dd class="boxContent">
                <dl>
                    <dt><h:outputText value="Recapitulatif"/></dt>
                    <dd>
                        <h:dataTable value="#{currentuser.listCart}" var="item" border="0" cellpadding="1" cellspacing="0">
                            <h:column>
                                <h:outputText value="#{item.title}"/>
                            </h:column>
                            
                            <h:column>
                                <h:commandLink action="#{currentuser.removeFromCart}">
                                    <f:param name="id" value="#{item.id}"/>
                                    <h:outputText value="Annuler"/>
                                </h:commandLink>
                            </h:column>
                        </h:dataTable>
                    </dd>
                    <dd>
                        <h:commandButton action="#{currentuser.validCart}" value="Valider" class="formButton" style="width: 166px;"/>
                    </dd>
                </dl>
            </dd>
        </dl>
    </h:form>
</div>